import { Injectable } from '@angular/core';
import { Message } from 'primeng/api';
import { DeviceDetectorService } from 'ngx-device-detector';

@Injectable({
  providedIn: 'root'
})
export class MessageUtilsService {
  //message
  constructor() { }



  showInfo(msgs, message) {
    msgs.push({ severity: 'info', summary: 'Message', detail: message });
  }

  showError(msgs, message) {
    msgs.push({ severity: 'error', summary: 'Message', detail: message });
  }

  showSuccess(msgs, message) {
    msgs.push({ severity: 'success', summary: 'Success Message', detail: message });
  }
}
